<script setup lang="ts">
// TAG 后台的主页面

import { infoStore } from '../store/info';
const info = infoStore()

let Nickname = info.nickname

withDefaults(
    defineProps<{
        moduleName: string,
        // 当前页面路由
        parentPath: string
        // 路由表
        routeList: { [props: string]: any }
    }>(),
    {

    }
);
</script>
<template lang="pug">
w-full.shadow-md.flex.sticky.top-0
    router-link.py-6.px-4(v-for="route in routeList" :to="`${parentPath}${route.path}`" replace) {{ route.meta.title }}
.container.py-2
    router-view
</template>
<style lang="scss" scoped>
@import "/src/tailwind.scss";
.router-link-active {
    background: #f0faf2;
    // color: gray;
}
</style>